package com.tangqihang229350526.mynote.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.tangqihang229350526.mynote.database.Note

class HomeViewModel : ViewModel() {
    private val data: MutableLiveData<List<Note>> = MutableLiveData()

    fun setData(data: List<Note>) {
        this.data.value = data
    }

    fun getData(): LiveData<List<Note>> {
        return data
    }
}